package com.fysports.web.event.core;

/**
 * 标记事件点
 * Created by konbluesky
 * Date : 15/11/24 下午7:02
 * Project : jdmdataServer
 */
public enum EventPoint {
    ATTENDANCE("attendance","签到事件"),
    ACTIVITY_NORMAL("activiti_normal","普通活动");

    EventPoint(String code, String strLabel) {
        this.code = code;
        this.strLabel = strLabel;
    }

    private String code;
    private String strLabel;


    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getStrLabel() {
        return strLabel;
    }

    public void setStrLabel(String strLabel) {
        this.strLabel = strLabel;
    }

    public boolean equals(EventPoint ep){
        for(EventPoint e:EventPoint.values()){
            if(e.code.equals(ep.code)){
                return true;
            }
        }
        return false;
    }
}
